<template>
    <div>id neirong {{ title }}        
        <p>{{ name }}</p>
    </div>
</template>

<script>
import axios from "axios"

export default {
  data () {
      return { name : "hanchangshou" } 
  },
  asyncData ({ params, error }) {
        return axios.get(`http://data.lymls.com/`)
        .then((res) => {            
            return {title: res.data.ip} 
        })
        .catch((e) => {
            error({ statusCode: 500, message: 'Post not found' })
        })
    }
}
</script>
